{% extends 'AdminsBundle:base:main.content.lists.div.html.twig' %}
{% block options %}
    <div class="menu-list">
        <div class="rule-single-select">
            <select name="cond[cid]" onchange="javascript:__doPostBack('searchCond','')" >
                <option value="" {{app.request.get("cond").cid is defined and app.request.get("cond").cid == "" ? ' selected="selected"' : "" }} >请选择分类</option>
                {% for class in classes %}
                    <option value="{{ class.id }}" {{app.request.get("cond").cid is defined and  app.request.get("cond").cid == class.id ? ' selected="selected"' : "" }} >{{ class.name }}</option>
                {% endfor %}
            </select>
        </div>
        <div class="rule-single-select">
            <select name="cond[attrId]" onchange="javascript:__doPostBack('searchCond','')" >
                <option value="" {{app.request.get("cond").cid is defined and app.request.get("cond").cid == "" ? ' selected="selected"' : "" }} >请选择分类</option>
                {% for class in attrs %}
                    <option value="{{ class.id }}" {{app.request.get("cond").attrId is defined and  app.request.get("cond").attrId == class.id ? ' selected="selected"' : "" }} >{{ class.attrName }}</option>
                {% endfor %}
            </select>
        </div>
    </div>
{% endblock %}
{% block tableHead %}
    <tr>
        <th width="6%">选择</th>
        <th align="left">属性值</th>
        <th align="center" width="5%">管理</th>
    </tr>
{% endblock %}
{% block tableList %}
    {% for CategoryAttributeValue in lists %}
        <tr>
            <td align="center">
                <span class="checkall" style="vertical-align:middle;">
                    <input type="checkbox" name="ids[]" value="{{ CategoryAttributeValue.id }}"/>
                </span>
            </td>
            <td>{{ CategoryAttributeValue.attrVal }}</td>
            <td align="center">
                <a href="{{ path("CategoryAttributeValuePreEdit",{'id':CategoryAttributeValue.id}) }}" class="img-btn edit"></a>
            </td>
        </tr>
    {% endfor %}
{% endblock %}
{% block script %}
    {#{% include 'AdminsBundle:base:inc.js.pic.upload.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.article.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.form.valid.twig' %}#}
    {#{% include 'AdminsBundle:base:inc.js.date.picker.twig' %}#}
{% endblock %}

